package com.example;
import java.util.Scanner;

public class Day1Temp {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("Enter a degree in Celsius:");
        double Celsius = sc.nextDouble();
        double Fahrenheit= TemperatureCalculator(Celsius);
        System.out.println(Celsius + "Celsius is" + Fahrenheit + "Fahrenheit");
    }

    public static double TemperatureCalculator(double Celsius) {
        double Fahrenheit = (9.0/5)*Celsius+32;
        return Fahrenheit;
    }



}
